package com.heima.es.repository;

import com.heima.es.pojo.Goods;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface GoodsRepository extends ElasticsearchRepository<Goods,Long> {
    List<Goods> findByTitle(String title);

    List<Goods> findByBrand(String brandName);

    List<Goods> findByPriceBetween(double low, double high);

    List<Goods> findByTitleAndBrand(String title, String brand);

    List<Goods> findByTitleOrBrand(String title, String brand);
}
